// Copyright (C) 2021 Focus Media Holding Ltd. All Rights Reserved.

package cn.focusmedia.central.${appCode}.client;

import javax.validation.Valid;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.focusmedia.central.${appCode}.client.dto.${modelPackName}.${className}DTO;
import cn.focusmedia.central.${appCode}.client.dto.${modelPackName}.${className}QueryDTO;
import cn.focusmedia.fdf.common.dto.MultiResponse;

/**
* ${className}Client
*
* @author ${author}
* @since  ${date}
**/
@FeignClient(url = "${feignUrl}",
        name = "${projectName}-${objectName}")
@RequestMapping("/v1/api/${objectName}")
public interface ${className}Client {

    @PostMapping(value = "/query")
    MultiResponse<${className}DTO> query(@RequestBody @Valid ${className}QueryDTO param);

}